import request from '@/utils/request'

export function listpartInfo(query) {
  return request({
    url: '/part/partInfo/list',
    method: 'get',
    params: query
  })
}

export function createpartInfo(data) {
  return request({
    url: '/part/partInfo/create',
    method: 'post',
    data
  })
}

export function readpartInfo(data) {
  return request({
    url: '/part/partInfo/get/' + data.id,
    method: 'get'
  })
}

export function updatepartInfo(data) {
  return request({
    url: '/part/partInfo/update',
    method: 'post',
    data
  })
}

export function deletepartInfo(data) {
  return request({
    url: '/part/partInfo/delete/' + data.fpartid,
    method: 'delete'
  })
}
